package xinxin.com.ChainofResponsibilityPatternBasic.Handler.concrete;

import xinxin.com.ChainofResponsibilityPatternBasic.Handler.Handler;

/**
 * @author ：史鑫鑫
 * @date ：Created in 2019/4/1 20:14
 */
public class ConcreteHandler2 extends Handler {
    @Override
    public void HandleRequest(int request) {
        if (request >= 10 && request < 20) {
            System.out.println(this.getClass().getName() + "处理请求" + request);
        } else if (successor != null) {
            successor.HandleRequest(request);
        }
    }
}
